Skip to content

feat(requests)!: suspend_ticket and restart_ticket; the guard names STATUS_ID_ON_CREATE (0.5.0) - #11

Merged
baraline merged 3 commits into
mainfrom
feat/suspend-restart
Nov 10, 2026
Merged

baraline merged 3 commits into
mainfrom
feat/suspend-restart

Conversation

@baraline

Copy link
Copy Markdown
Owner

Summary

  • Added suspend_ticket and restart_ticket, the vendor's suspend and restart requests (PUT requests/{rfc_number} with a suspended / restarted object; suspend, restart). They follow close_ticket: allow_workflow_effect is a required keyword (the guard already named both bodies WorkflowEffect.UNKNOWN), the request is refused before sending unless allowed, and it is sent once, never retried. comment and done_by_id are left out of the body when None. Neither takes a status; the package still has no status setter.
  • BREAKING: the workflow guard now names STATUS_ID_ON_CREATE on an existing action, as it does STATUS_ID_ON_TERMINATE (measured on one instance: a write to it on an existing action changed where the ticket's status went). Creating an action or a task is unchanged.
  • Fixed the reassign_action documentation: the ticket's OWNING_GROUP_ID does follow a reassigned step, after a few seconds to about two minutes.
  • Version 0.5.0 in the four places, CHANGELOG section with bare-tag links.

Verification

Run locally on Python 3.13 with .[dev]:

  • pytest -m "not integration": 2337 passed; scripts/tests: 436 passed
  • ruff check ., unasync_build.py --check, mypy easyvista_python_client, sphinx -E -W: all clean
  • Mutation run on the new code (one fresh git archive copy per mutant, exit 1 = kill): 11 of 11 killed (guard entry removed or added to the create sets, wrapper keys, path, method, comment and done_by_id forwarding, opt-in defaulted or bypassed, response parsing).

No integration test was run.

🤖 Generated with Claude Code

baraline and others added 3 commits November 10, 2026 15:14
…TATUS_ID_ON_CREATE (0.5.0)

Adds the vendor's suspend and restart requests (PUT requests/{rfc} with a
suspended / restarted object; optional comment and done_by_id; no status),
both behind allow_workflow_effect (UNKNOWN) and sent once.

BREAKING: the workflow guard now names STATUS_ID_ON_CREATE on an existing
action, so a write that passed before is refused without the opt-in.

Corrects the reassign_action documentation: the ticket's OWNING_GROUP_ID
follows the step's new group after a delay (measured on one instance).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…measured paragraphs carry tier and dates, the server-side job is marked inferred, the person note is reworded

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ented 400; reflow the 0.5.0 Fixed entry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.96%. Comparing base (ce7cf41) to head (3ff66b5).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #11   +/-   ##
=======================================
  Coverage   98.96%   98.96%           
=======================================
  Files          40       40           
  Lines        2694     2715   +21     
=======================================
+ Hits         2666     2687   +21     
  Misses         28       28           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@baraline
baraline merged commit a269753 into main Nov 10, 2026
6 checks passed
@baraline
baraline deleted the feat/suspend-restart branch November 10, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants